import { post,get,put } from "@/utils/request";

export const getUserAddressAPI = (userId) => get(`/mall/api/address/user/${userId}`);

export const addAddress = (data) => post("/mall/api/address/user/add", data);

export const updateAddress = (data) => put("/mall/api/address/user/update", data);


export const getUserAddressDetail = (id) => get(`/mall/api/address/user/id/${id}`);

export const getUserAddressDetailDefault = (userId) => get(`/mall/api/address/user/${userId}/default`);


